#ifndef AnimateWindow_H
#define AnimateWindow_H

#include <QDialog>
#include <QTime>
class AnimateWindow: public QDialog

{
    Q_OBJECT
public:    
    AnimateWindow();
    virtual ~AnimateWindow();
    void addTrailPoint(const QPoint &point);
    void setIsShowPath(bool value);
    void setIsShowClick(bool value);
    void setIsPressed(bool value);
public slots:
    void setRadiusColor( int valueRadius, QColor valueColor );
    void setOpacity( double value );
    void setRadiant( bool value );
    void calcSpeed();
protected:
    void paintEvent(QPaintEvent *) override;

private:
    int diameter;
    QColor color;
    double opacity;
    bool radiant;

    static const int maxTrailLength = 20;
    QList<QPoint> trailPoints;
    bool m_isShowClick = false;
    bool m_isShowPath = false;
    bool m_isPressed = false;
    QTimer *m_timer;
    int m_x=-1, m_y=-1;
};

#endif // AnimateWindow_H
